import request from "@/utils/request";

/**
 * 查询流程模型数据
 * @param { string } defId -流程定义id
 */
export const processModel = defId => {
  return request({
    url: `/process/model/detailByDefId/${defId}`,
    method: "get"
  });
};

/**
 * 获取流程模型实例数据
 * @param { string } instanceId -表单实例ID
 */
export const processInstanceForm = instanceId => {
  return request({
    url: `/process/form/data/by/${instanceId}`,
    method: "get"
  });
};
